package com.springboot.ww.platform.pd.order.api;

import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2024-05-16 16:36
 */
@Data
public class PdGrabListReq {

    private boolean systemGrab;
    private Date beginTime;
    private Date endingTime;
    private String doMain;
    private List<String> platOrderIdList;

    public PdGrabListReq() {
    }

    /**
     * 按时间查询
     *
     * @param beginTime
     * @param endingTime
     * @param doMain
     */
    public PdGrabListReq(Date beginTime, Date endingTime,String doMain) {
        this.beginTime = beginTime;
        this.endingTime = endingTime;
        this.doMain = doMain;
        this.systemGrab = true;
    }

    public Boolean manualGrab() {
        return !systemGrab;
    }
}
